<?php

declare(strict_types=1);

namespace App\CustHub\Model;

use Hyperf\Database\Model\SoftDeletes;
use Mine\MineModel;

/**
 * @property int $id 主键
 * @property int $uid 账号ID
 * @property int $group_id 应用组ID
 * @property string $app_name 应用名称
 * @property string $app_id 应用ID
 * @property string $app_secret 应用密钥
 * @property int $status 状态 (1正常 2停用)
 * @property string $description 应用介绍
 * @property int $notify_switch 回调通知开关：0=关 1=开
 * @property string $notify_url 回调通知地址
 * @property int $created_by 创建者
 * @property int $updated_by 更新者
 * @property \Carbon\Carbon $created_at 创建时间
 * @property \Carbon\Carbon $updated_at 更新时间
 * @property string $deleted_at 删除时间
 * @property string $remark 备注
 */
class SystemApp extends MineModel
{
    use SoftDeletes;
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'system_app';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'uid', 'group_id', 'app_name', 'app_id', 'app_secret', 'status', 'description', 'notify_switch', 'notify_url', 'created_by', 'updated_by', 'created_at', 'updated_at', 'deleted_at', 'remark'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'uid' => 'integer', 'group_id' => 'integer', 'status' => 'integer', 'notify_switch' => 'integer', 'created_by' => 'integer', 'updated_by' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime'];
}
